﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Register.ascx.cs" Inherits="Register" %>
<link rel="stylesheet" type="text/css" href="Style/style.css" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                <tr>
                    <td style="width: 100%; height: 19px">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                               
                                <td bgcolor="#3b5998" style="width: 100%; font-size:large"  id="textmenu" align="left">
                                    Đăng ký</td>
                                
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%; height: 19px;" id="bordermenu">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;padding-top:10px;"  id="contend">
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label1" runat="server" Text="Tên đăng nhập: " ForeColor="#A62800"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 30px;" valign="middle">
                                    <asp:TextBox ID="txtUserName" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:Label ID="Label9" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RequiredFieldValidator ID="valUserName" runat="server" ControlToValidate="txtUserName"
                                        ErrorMessage="Please enter your user name!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    Mật khẩu gốc:</td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtPassword" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" TextMode="Password" Width="200px"></asp:TextBox><asp:Label ID="Label10" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="txtPassword"
                                        ErrorMessage="Please enter your pasword!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator><br />
                                    </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label3" runat="server" Text="Xác nhân mật khẩu: " ForeColor="#A62800" Width="125px"></asp:Label>
                                </td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtConfirm" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" TextMode="Password" Width="200px"></asp:TextBox><asp:Label ID="Label11" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:CompareValidator ID="cmpPassword" runat="server" ControlToCompare="txtPassword"
                                        ControlToValidate="txtConfirm" Display="Dynamic" ErrorMessage="Password missmatch!"
                                        SetFocusOnError="True">(*)</asp:CompareValidator>
                                    <asp:RequiredFieldValidator ID="valConfirm" runat="server" ControlToValidate="txtConfirm"
                                        ErrorMessage="Please enter your confirm pasowrd!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label16" runat="server" Text="Tên đầy đủ: " ForeColor="#A62800"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtFullName" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:Label ID="Label17" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RequiredFieldValidator ID="valFullName" runat="server" ControlToValidate="txtFullName"
                                        ErrorMessage="Please enter your full name!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr><td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                <asp:Label ID="Label4" runat="server" ForeColor="#A62800" Text="Email"></asp:Label>
                            </td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtEmail" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:Label ID="Label12" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RegularExpressionValidator ID="rglEmail" runat="server" ControlToValidate="txtEmail"
                                        ErrorMessage="Please enter correct  e-mail address format!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" SetFocusOnError="True">(*)</asp:RegularExpressionValidator>
                                    <asp:RequiredFieldValidator ID="valEmail" runat="server" ControlToValidate="txtEmail"
                                        ErrorMessage="Please enter your e-mail address!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label8" runat="server" Text="Số điện thoại:" ForeColor="#A62800"></asp:Label>
                                </td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtFoneNumber" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:Label ID="Label15" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RequiredFieldValidator ID="valFoneNumber" runat="server" ControlToValidate="txtFoneNumber"
                                        ErrorMessage="Please enter your fone number!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label6" runat="server" Text="Ngày sinh: " ForeColor="#A62800"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:DropDownList ID="ddlDate" runat="server" BackColor="ControlLight" ForeColor="#A62800">
                                        <asp:ListItem>1</asp:ListItem>
                                        <asp:ListItem>2</asp:ListItem>
                                        <asp:ListItem>3</asp:ListItem>
                                        <asp:ListItem>4</asp:ListItem>
                                        <asp:ListItem>5</asp:ListItem>
                                        <asp:ListItem>6</asp:ListItem>
                                        <asp:ListItem>7</asp:ListItem>
                                        <asp:ListItem>8</asp:ListItem>
                                        <asp:ListItem>9</asp:ListItem>
                                        <asp:ListItem>10</asp:ListItem>
                                        <asp:ListItem>11</asp:ListItem>
                                        <asp:ListItem>12</asp:ListItem>
                                        <asp:ListItem>13</asp:ListItem>
                                        <asp:ListItem>14</asp:ListItem>
                                        <asp:ListItem>15</asp:ListItem>
                                        <asp:ListItem>16</asp:ListItem>
                                        <asp:ListItem>17</asp:ListItem>
                                        <asp:ListItem>18</asp:ListItem>
                                        <asp:ListItem>19</asp:ListItem>
                                        <asp:ListItem>20</asp:ListItem>
                                        <asp:ListItem>21</asp:ListItem>
                                        <asp:ListItem>22</asp:ListItem>
                                        <asp:ListItem>23</asp:ListItem>
                                        <asp:ListItem>24</asp:ListItem>
                                        <asp:ListItem>25</asp:ListItem>
                                        <asp:ListItem>26</asp:ListItem>
                                        <asp:ListItem>27</asp:ListItem>
                                        <asp:ListItem>28</asp:ListItem>
                                        <asp:ListItem>29</asp:ListItem>
                                        <asp:ListItem>30</asp:ListItem>
                                        <asp:ListItem>31</asp:ListItem>
                                    </asp:DropDownList>Ngày
                                    <asp:DropDownList ID="ddlMonth" runat="server" BackColor="ControlLight" ForeColor="#A62800">
                                        <asp:ListItem>1</asp:ListItem>
                                        <asp:ListItem>2</asp:ListItem>
                                        <asp:ListItem>3</asp:ListItem>
                                        <asp:ListItem>4</asp:ListItem>
                                        <asp:ListItem>5</asp:ListItem>
                                        <asp:ListItem>6</asp:ListItem>
                                        <asp:ListItem>7</asp:ListItem>
                                        <asp:ListItem>8</asp:ListItem>
                                        <asp:ListItem>9</asp:ListItem>
                                        <asp:ListItem>10</asp:ListItem>
                                        <asp:ListItem>11</asp:ListItem>
                                        <asp:ListItem>12</asp:ListItem>
                                    </asp:DropDownList>
                                    Tháng
                                    <asp:DropDownList ID="ddlYear" runat="server" BackColor="ControlLight" ForeColor="#A62800"
                                        Width="70px">
                                        <asp:ListItem Value="1990">1990</asp:ListItem>
                                        <asp:ListItem Value="1991">1991</asp:ListItem>
                                        <asp:ListItem Value="1992">1992</asp:ListItem>
                                        <asp:ListItem Value="1993">1993</asp:ListItem>
                                        <asp:ListItem Value="1994">1994</asp:ListItem>
                                        <asp:ListItem Value="1995">1995</asp:ListItem>
                                        <asp:ListItem Value="1996">1996</asp:ListItem>
                                        <asp:ListItem Value="1998">1998</asp:ListItem>
                                        <asp:ListItem Value="1999">1999</asp:ListItem>
                                        <asp:ListItem Value="2000">2000</asp:ListItem>
                                        <asp:ListItem Value="2001">2001</asp:ListItem>
                                        <asp:ListItem Value="2002">2002</asp:ListItem>
                                        <asp:ListItem Value="2003">2003</asp:ListItem>
                                        <asp:ListItem Value="2004">2004</asp:ListItem>
                                        <asp:ListItem Value="2005">2005</asp:ListItem>
                                        <asp:ListItem Value="2006">2006</asp:ListItem>
                                        <asp:ListItem Value="2007">2007</asp:ListItem>
                                        <asp:ListItem Value="2008">2008</asp:ListItem>
                                        <asp:ListItem Value="2009">2009</asp:ListItem>
                                        <asp:ListItem Value="2010">2010</asp:ListItem>
                                    </asp:DropDownList>
                                    Năm
                                    <asp:Label ID="Label13" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    <asp:RequiredFieldValidator ID="valDate" runat="server" ControlToValidate="ddlDate"
                                        ErrorMessage="Please enter date!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator>
                                    <asp:RequiredFieldValidator ID="valMonth" runat="server" ControlToValidate="ddlMonth"
                                        ErrorMessage="Please enter month!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator>
                                    <asp:RequiredFieldValidator ID="valYear" runat="server" ControlToValidate="ddlYear"
                                        ErrorMessage="Please enter year!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label7" runat="server" Text="Địa chỉ: " ForeColor="#A62800"></asp:Label>
                                </td>
                                <td align="left" style="width: 350px; height: 29px" valign="middle">
                                    <asp:TextBox ID="txtAddress" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Height="67px" TextMode="MultiLine" Width="327px"></asp:TextBox>
                                    <asp:Label ID="Label14" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label><asp:RequiredFieldValidator ID="valAddress" runat="server" ControlToValidate="txtAddress"
                                        ErrorMessage="Please enter your Address!" SetFocusOnError="True">(*)</asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td align="right" style="padding-right: 10px; width: 100px; height: 30px">
                                    <asp:ValidationSummary ID="vSummary" runat="server" HeaderText="Errors" ShowMessageBox="True"
                                        ShowSummary="False" />
                                </td>
                                <td align="left" style="width: 350px; height: 45px" valign="middle">
                                    <asp:Button ID="btnSubmit" runat="server" BackColor="#4b6cb1"  Font-Bold="false" 
                            ForeColor="White" Width="80px" BorderStyle="None" Text="Đăng ký" OnClick="btnSubmit_Click" />
                                    <asp:Button ID="btnReset" runat="server" BackColor="#4b6cb1"  Font-Bold="false" 
                            ForeColor="White" Width="80px" BorderStyle="None" CausesValidation="False" 
                                        Text="Xóa trắng" OnClick="btnReset_Click" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>